package com.qf.forumproject.utils;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;

/**
 * @author manchi520
 * @date 2022/7/25
 * @Time: 19:27
 * @apiNote
 */

//给页码设置初始值
@ApiModel("分页参数")
public class PageInit {
    public static void initPage(SearchVo blogSearchVo){
        if (blogSearchVo.getPage() == null){
            blogSearchVo.setPage(1);
        }
        if (blogSearchVo.getLimit() == null){
            blogSearchVo.setLimit(10);
        }
    }
}
